<!--
 * 用户VIP管理模板
 * 作者：王勇程 (laughskydragon@qq.com)
-->
<form action="{:url()}" method="post" class="form_single">
    <div class="box">
        <div class="box-header with-border">
            <h3 class="box-title">用户VIP管理</h3>
        </div>
        <div class="box-body">
            <div class="row">
                <div class="col-md-6">
                    <div class="form-group">
                        <label>用户昵称</label>
                        <p class="form-control-static">{$info.nickname|default='-'}</p>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>手机号</label>
                        <p class="form-control-static">{$info.mobile|default='-'}</p>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>当前VIP等级</label>
                        <p class="form-control-static">
                            {switch name="info.vip_level"}
                                {case value="0"}普通用户{/case}
                                {case value="1"}VIP月卡{/case}
                                {case value="2"}VIP季卡{/case}
                                {case value="3"}VIP年卡{/case}
                                {default /}未知
                            {/switch}
                        </p>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>VIP到期时间</label>
                        <p class="form-control-static">{$info.vip_expire_time|date='Y-m-d H:i:s'}</p>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>设置VIP等级</label>
                        <span>（修改用户VIP等级）</span>
                        <select class="form-control" name="vip_level">
                            <option value="0" {if condition="$info.vip_level eq 0"}selected{/if}>普通用户</option>
                            <option value="1" {if condition="$info.vip_level eq 1"}selected{/if}>VIP月卡</option>
                            <option value="2" {if condition="$info.vip_level eq 2"}selected{/if}>VIP季卡</option>
                            <option value="3" {if condition="$info.vip_level eq 3"}selected{/if}>VIP年卡</option>
                        </select>
                    </div>
                </div>
                <div class="col-md-6">
                    <div class="form-group">
                        <label>VIP到期时间</label>
                        <span>（设置VIP到期时间）</span>
                        <input class="form-control" name="vip_expire_time" placeholder="请选择到期时间" value="{$info.vip_expire_time|date='Y-m-d H:i:s'}" type="datetime-local">
                    </div>
                </div>
                <div class="col-md-12">
                    <div class="form-group">
                        <label>操作说明</label>
                        <textarea class="form-control" name="remark" placeholder="请输入操作说明" rows="3"></textarea>
                    </div>
                </div>
            </div>
        </div>
        <div class="box-footer">
            <input type="hidden" name="id" value="{$info.id|default='0'}"/>
            {include file="layout/edit_btn_group"/}
        </div>
    </div>
</form>